package com.fxnotes.common.ui.components;

import javafx.event.ActionEvent;
import javafx.event.EventHandler;

public class ButtonInfo {

    private String name;
    private EventHandler<ActionEvent> handler;

    protected ButtonInfo(String name, EventHandler<ActionEvent> handler) {
        this.name = name;
        this.handler = handler;
    }

    protected ButtonInfo(String name) {
        this.name = name;
    }

    protected EventHandler<ActionEvent> getHandler() {
        return handler;
    }

    protected String getName() {
        return name;
    }
}
